package com.ruoyi.common.constant;

public class SqlOrder {
    /**
     * 按权重降序
     */
    public static final String WEIGHT_DESC="host_sort_weight desc";

    /**
     * 按权重升序
     */
    public static final String WEIGHT_ASC="host_sort_weight asc";


    public static String getSqlOrder(int order){


        if(order == -1){
            return "";
        }else if(order ==3){
            return WEIGHT_DESC;
        }else if(order ==4){
            return WEIGHT_ASC;
        }else{
            return "";
        }

    }
}
